package com.usian.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class User {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField(value = "userName")
    private String userName;
    private String address;
//    @TableField(value = "input_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date inputDate;
    @TableField(value = "roleId")
    private Integer roleId;

}
